﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="mydate.js" type="text/javascript"></script>
</head>
<body>
<script>

    //    var date1 = parseDate('2015/6/22 1:33:22');
    var date1 = new Date();
    var date2 = AddDays(date1, -3);
    var str= date2.format("yyyy-MM-dd hh:mm:ss");

    alert(str);

</script>
</body>
</html>
